package com.yyfax.ph.personal.mymoney.withdraw;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.content.Loader;
import android.view.View;
import butterknife.OnClick;
import com.yyfax.infrastructure.mvp.Presenter;
import com.yyfax.ph.R;
import com.yyfax.ph.base.BaseYYFaxActivity;
import com.yyfax.ph.personal.mymoney.cash.CashActivity;

/**
 * 提现成功界面
 * Created by zhangxian on 2017/11/6.<br>
 * Copyright 2017 www.yylending.com. All Rights Reserved.<br><br>
 */
public class WithDrawSuccessActivity extends BaseYYFaxActivity {

	public static void start(Activity aty) {
		Intent intent = new Intent(aty, WithDrawSuccessActivity.class);
		aty.startActivity(intent);
	}

	@Override
	public Loader<Presenter> onCreateLoader(int id, Bundle args) {
		return null;
	}

	@Override
	public void onLoadFinished(Loader<Presenter> loader, Presenter data, int placeholder) {
	}


	@Override
	public int getContentViewRes() {
		return R.layout.withdraw_success_activity;
	}

	@Override
	public void initContentView() {
		super.initContentView();
		setTitle(R.string.submit_success);
	}

	@Override
	public void onBackBtnPressed() {
		super.onBackBtnPressed();
		finish();
	}

	@Override
	public void onBackPressed() {
		super.onBackPressed();
		finish();
	}

	@OnClick({R.id.view_progress_btn, R.id.back_btn})
	public void onClilck(View view) {
		super.onClick(view);
		switch (view.getId()) {
			case R.id.view_progress_btn:
				CashActivity.start(this);
				break;
			case R.id.back_btn:
				finish();
				break;
			default:
				break;
		}
	}
}
